package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 发货单明细记录-引入的发货发令单实体类
 *
 * @author 吴旭
 */
public class ShippingOrderLinesDoEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 8206485151105466957L;
    private String LinesId;
    private Long HeaderId;
    private String BillNo;
    private Long DoHeaderId;
    private String DoLinesId;
    private String ProductName;
    private String StyleNo;                 // 款号
    private String Destination;             // 发货目的地控制
    private String ColourName;              // 颜色(有混色情况,取自生产指示书明细的色号)
    private String ColourOrderNo;           // 成品颜色顺序号(混色顺序号:1/2/1)
    private String SizeName;                // 成品尺码（取自生产指示书明细的套装尺码）
    private String SizeOrderNo;             // 成品尺码顺序号(混码顺序号:1/2/1)
    private Integer InCase;                 // 箱装数
    private Integer CartonNo;               // 自定义起始箱号
    private Integer Quantity;               // 实际发货数量
    private String ShippingMarkNo;

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getBillNo() {
        return BillNo;
    }

    public void setBillNo(String BillNo) {
        this.BillNo = BillNo;
    }

    public Long getDoHeaderId() {
        return DoHeaderId;
    }

    public void setDoHeaderId(Long DoHeaderId) {
        this.DoHeaderId = DoHeaderId;
    }

    public String getDoLinesId() {
        return DoLinesId;
    }

    public void setDoLinesId(String DoLinesId) {
        this.DoLinesId = DoLinesId;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public String getDestination() {
        return Destination;
    }

    public void setDestination(String Destination) {
        this.Destination = Destination;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public String getColourOrderNo() {
        return ColourOrderNo;
    }

    public void setColourOrderNo(String ColourOrderNo) {
        this.ColourOrderNo = ColourOrderNo;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public String getSizeOrderNo() {
        return SizeOrderNo;
    }

    public void setSizeOrderNo(String SizeOrderNo) {
        this.SizeOrderNo = SizeOrderNo;
    }

    public Integer getInCase() {
        return InCase;
    }

    public void setInCase(Integer InCase) {
        this.InCase = InCase;
    }

    public Integer getCartonNo() {
        return CartonNo;
    }

    public void setCartonNo(Integer CartonNo) {
        this.CartonNo = CartonNo;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer Quantity) {
        this.Quantity = Quantity;
    }

    public String getShippingMarkNo() {
        return ShippingMarkNo;
    }

    public void setShippingMarkNo(String ShippingMarkNo) {
        this.ShippingMarkNo = ShippingMarkNo;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ShippingOrderLinesDoEntity)) {
            return false;
        }

        final ShippingOrderLinesDoEntity that = (ShippingOrderLinesDoEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
